package com.april.pattern.behavioral.visitor;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/09 17:11
 * @description
 */
public abstract class Course {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 对Course的操作
     *
     * @param visitor 操作者接口
     */
    public abstract void accept(Visitor visitor);
}
